package com.sinosoft.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author loujiang
 * @date 2020/12/24 11:44 下午
 * @NOTE:
 */
@RestController
@RequestMapping("/refresh")
@RefreshScope
public class RefreshController {

    @Value("${words}")
    private String words;

    @Value("${dbpassword}")
    private String dbpassword;

    @RequestMapping("/words")
    public String getWords() {
        return words;
    }

    @RequestMapping("/passwrod")
    public  String  dbpassword()
    {
        return  dbpassword;
    }
}
